import request from '@/utils/request'

export function GetPer () {
    return request({
        url: 'api/query/personalityAll',
        method: 'post'
    })
}

export function GetNoPer (data) {
    return request({
        url: 'api/query/personalityNo',
        method: 'post',
        data
    })
}

export function GetNamePer (data) {
    return request({
        url: 'api/query/personalityName',
        method: 'post',
        data
    })
}

export function AddPer (data) {
    return request({
        url: 'api/insert/personality',
        method: 'post',
        data
    })
}

export function DelPer (data) {
    return request({
        url: 'api/delete/personality',
        method: 'post',
        data
    })
}

export function SetPer(data) {
    return request({
        url: 'api/update/personality',
        method: 'post',
        data
    })
}
